﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using CPAScoringPerformanceTester.Models;

namespace CPAScoringPerformanceTester
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            if (!Preference.Global.Load())
            {
                MessageBox.Show("Failed! Please check user-preference.xml...");
                Application.Current.Shutdown();
            }

            if (!Options.Current.Load())
            {
                MessageBox.Show("Failed! Please check plan-options.xml...");
                Application.Current.Shutdown();
            }
        }
    }
}
